import request from '@/utils/request'

// 查询水情人工观测站数据记录列表
export function listStManstatR(query) {
  return request({
    url: '/waterManagement/StManstatR/list',
    method: 'get',
    params: query
  })
}

// 查询水情人工观测站数据记录详细
export function getStManstatR(statCd) {
  return request({
    url: '/waterManagement/StManstatR/' + statCd,
    method: 'get'
  })
}

// 查询水情人工观测站数据记录详细
export function getStManstatR_new(query) {
  return request({
    url: '/waterManagement/StManstatR/getInfo',
    method: 'get',
    params: query
  })
}

// 新增水情人工观测站数据记录
export function addStManstatR(data) {
  return request({
    url: '/waterManagement/StManstatR',
    method: 'post',
    data: data
  })
}

// 修改水情人工观测站数据记录
export function updateStManstatR(data) {
  return request({
    url: '/waterManagement/StManstatR',
    method: 'put',
    data: data
  })
}

// 删除水情人工观测站数据记录
export function delStManstatR(statCd) {
  return request({
    url: '/waterManagement/StManstatR/' + statCd,
    method: 'delete'
  })
}

// 删除水情在线监测站数据记录
export function delStStationR_new(query) {
  return request({
    url: '/waterManagement/StManstatR',
    method: 'delete',
    params: query
  })
}

// 在线监测站数据查询遗漏点时间
export function selMissingTime(query) {
  return request({
    url: '/waterManagement/StManstatR/selMissingTime',
    method: 'get',
    params: query
  })
}